﻿using QuanLySieuThi.Controllers;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace QuanLySieuThi.Views
{
    public partial class frmKiemKe : Form
    {
        public frmKiemKe()
        {
            InitializeComponent();
        }
        
        private void frmKiemKe_Load(object sender, EventArgs e)
        {
            dataGridView1.DataSource = QuanLyMatHang.UniqueObject.GetDataTable;        
        }

        private void textBox1_TextChanged(object sender, EventArgs e)
        {
            dataGridView1.DataSource = QuanLyMatHang.UniqueObject.TimKiem(textBox1.Text);
        }
    }
}
